package com.zshan.clinic.database.model;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StatClinicIncomeDailyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public StatClinicIncomeDailyExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNull() {
            addCriterion("clinic_id is null");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNotNull() {
            addCriterion("clinic_id is not null");
            return (Criteria) this;
        }

        public Criteria andClinicIdEqualTo(Long value) {
            addCriterion("clinic_id =", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotEqualTo(Long value) {
            addCriterion("clinic_id <>", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThan(Long value) {
            addCriterion("clinic_id >", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThanOrEqualTo(Long value) {
            addCriterion("clinic_id >=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThan(Long value) {
            addCriterion("clinic_id <", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThanOrEqualTo(Long value) {
            addCriterion("clinic_id <=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdIn(List<Long> values) {
            addCriterion("clinic_id in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotIn(List<Long> values) {
            addCriterion("clinic_id not in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdBetween(Long value1, Long value2) {
            addCriterion("clinic_id between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotBetween(Long value1, Long value2) {
            addCriterion("clinic_id not between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andStatDateIsNull() {
            addCriterion("stat_date is null");
            return (Criteria) this;
        }

        public Criteria andStatDateIsNotNull() {
            addCriterion("stat_date is not null");
            return (Criteria) this;
        }

        public Criteria andStatDateEqualTo(LocalDate value) {
            addCriterion("stat_date =", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotEqualTo(LocalDate value) {
            addCriterion("stat_date <>", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateGreaterThan(LocalDate value) {
            addCriterion("stat_date >", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateGreaterThanOrEqualTo(LocalDate value) {
            addCriterion("stat_date >=", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateLessThan(LocalDate value) {
            addCriterion("stat_date <", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateLessThanOrEqualTo(LocalDate value) {
            addCriterion("stat_date <=", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateIn(List<LocalDate> values) {
            addCriterion("stat_date in", values, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotIn(List<LocalDate> values) {
            addCriterion("stat_date not in", values, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateBetween(LocalDate value1, LocalDate value2) {
            addCriterion("stat_date between", value1, value2, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotBetween(LocalDate value1, LocalDate value2) {
            addCriterion("stat_date not between", value1, value2, "statDate");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountIsNull() {
            addCriterion("income_amount is null");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountIsNotNull() {
            addCriterion("income_amount is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountEqualTo(Integer value) {
            addCriterion("income_amount =", value, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountNotEqualTo(Integer value) {
            addCriterion("income_amount <>", value, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountGreaterThan(Integer value) {
            addCriterion("income_amount >", value, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("income_amount >=", value, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountLessThan(Integer value) {
            addCriterion("income_amount <", value, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountLessThanOrEqualTo(Integer value) {
            addCriterion("income_amount <=", value, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountIn(List<Integer> values) {
            addCriterion("income_amount in", values, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountNotIn(List<Integer> values) {
            addCriterion("income_amount not in", values, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountBetween(Integer value1, Integer value2) {
            addCriterion("income_amount between", value1, value2, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("income_amount not between", value1, value2, "incomeAmount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountIsNull() {
            addCriterion("income_count is null");
            return (Criteria) this;
        }

        public Criteria andIncomeCountIsNotNull() {
            addCriterion("income_count is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeCountEqualTo(Integer value) {
            addCriterion("income_count =", value, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountNotEqualTo(Integer value) {
            addCriterion("income_count <>", value, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountGreaterThan(Integer value) {
            addCriterion("income_count >", value, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("income_count >=", value, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountLessThan(Integer value) {
            addCriterion("income_count <", value, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountLessThanOrEqualTo(Integer value) {
            addCriterion("income_count <=", value, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountIn(List<Integer> values) {
            addCriterion("income_count in", values, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountNotIn(List<Integer> values) {
            addCriterion("income_count not in", values, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountBetween(Integer value1, Integer value2) {
            addCriterion("income_count between", value1, value2, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andIncomeCountNotBetween(Integer value1, Integer value2) {
            addCriterion("income_count not between", value1, value2, "incomeCount");
            return (Criteria) this;
        }

        public Criteria andRegCountIsNull() {
            addCriterion("reg_count is null");
            return (Criteria) this;
        }

        public Criteria andRegCountIsNotNull() {
            addCriterion("reg_count is not null");
            return (Criteria) this;
        }

        public Criteria andRegCountEqualTo(Integer value) {
            addCriterion("reg_count =", value, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountNotEqualTo(Integer value) {
            addCriterion("reg_count <>", value, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountGreaterThan(Integer value) {
            addCriterion("reg_count >", value, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("reg_count >=", value, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountLessThan(Integer value) {
            addCriterion("reg_count <", value, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountLessThanOrEqualTo(Integer value) {
            addCriterion("reg_count <=", value, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountIn(List<Integer> values) {
            addCriterion("reg_count in", values, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountNotIn(List<Integer> values) {
            addCriterion("reg_count not in", values, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountBetween(Integer value1, Integer value2) {
            addCriterion("reg_count between", value1, value2, "regCount");
            return (Criteria) this;
        }

        public Criteria andRegCountNotBetween(Integer value1, Integer value2) {
            addCriterion("reg_count not between", value1, value2, "regCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountIsNull() {
            addCriterion("medical_count is null");
            return (Criteria) this;
        }

        public Criteria andMedicalCountIsNotNull() {
            addCriterion("medical_count is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalCountEqualTo(Integer value) {
            addCriterion("medical_count =", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountNotEqualTo(Integer value) {
            addCriterion("medical_count <>", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountGreaterThan(Integer value) {
            addCriterion("medical_count >", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("medical_count >=", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountLessThan(Integer value) {
            addCriterion("medical_count <", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountLessThanOrEqualTo(Integer value) {
            addCriterion("medical_count <=", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountIn(List<Integer> values) {
            addCriterion("medical_count in", values, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountNotIn(List<Integer> values) {
            addCriterion("medical_count not in", values, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountBetween(Integer value1, Integer value2) {
            addCriterion("medical_count between", value1, value2, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountNotBetween(Integer value1, Integer value2) {
            addCriterion("medical_count not between", value1, value2, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountIsNull() {
            addCriterion("followup_count is null");
            return (Criteria) this;
        }

        public Criteria andFollowupCountIsNotNull() {
            addCriterion("followup_count is not null");
            return (Criteria) this;
        }

        public Criteria andFollowupCountEqualTo(Integer value) {
            addCriterion("followup_count =", value, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountNotEqualTo(Integer value) {
            addCriterion("followup_count <>", value, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountGreaterThan(Integer value) {
            addCriterion("followup_count >", value, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("followup_count >=", value, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountLessThan(Integer value) {
            addCriterion("followup_count <", value, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountLessThanOrEqualTo(Integer value) {
            addCriterion("followup_count <=", value, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountIn(List<Integer> values) {
            addCriterion("followup_count in", values, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountNotIn(List<Integer> values) {
            addCriterion("followup_count not in", values, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountBetween(Integer value1, Integer value2) {
            addCriterion("followup_count between", value1, value2, "followupCount");
            return (Criteria) this;
        }

        public Criteria andFollowupCountNotBetween(Integer value1, Integer value2) {
            addCriterion("followup_count not between", value1, value2, "followupCount");
            return (Criteria) this;
        }

        public Criteria andExamCountIsNull() {
            addCriterion("exam_count is null");
            return (Criteria) this;
        }

        public Criteria andExamCountIsNotNull() {
            addCriterion("exam_count is not null");
            return (Criteria) this;
        }

        public Criteria andExamCountEqualTo(Integer value) {
            addCriterion("exam_count =", value, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountNotEqualTo(Integer value) {
            addCriterion("exam_count <>", value, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountGreaterThan(Integer value) {
            addCriterion("exam_count >", value, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("exam_count >=", value, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountLessThan(Integer value) {
            addCriterion("exam_count <", value, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountLessThanOrEqualTo(Integer value) {
            addCriterion("exam_count <=", value, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountIn(List<Integer> values) {
            addCriterion("exam_count in", values, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountNotIn(List<Integer> values) {
            addCriterion("exam_count not in", values, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountBetween(Integer value1, Integer value2) {
            addCriterion("exam_count between", value1, value2, "examCount");
            return (Criteria) this;
        }

        public Criteria andExamCountNotBetween(Integer value1, Integer value2) {
            addCriterion("exam_count not between", value1, value2, "examCount");
            return (Criteria) this;
        }

        public Criteria andLabCountIsNull() {
            addCriterion("lab_count is null");
            return (Criteria) this;
        }

        public Criteria andLabCountIsNotNull() {
            addCriterion("lab_count is not null");
            return (Criteria) this;
        }

        public Criteria andLabCountEqualTo(Integer value) {
            addCriterion("lab_count =", value, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountNotEqualTo(Integer value) {
            addCriterion("lab_count <>", value, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountGreaterThan(Integer value) {
            addCriterion("lab_count >", value, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("lab_count >=", value, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountLessThan(Integer value) {
            addCriterion("lab_count <", value, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountLessThanOrEqualTo(Integer value) {
            addCriterion("lab_count <=", value, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountIn(List<Integer> values) {
            addCriterion("lab_count in", values, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountNotIn(List<Integer> values) {
            addCriterion("lab_count not in", values, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountBetween(Integer value1, Integer value2) {
            addCriterion("lab_count between", value1, value2, "labCount");
            return (Criteria) this;
        }

        public Criteria andLabCountNotBetween(Integer value1, Integer value2) {
            addCriterion("lab_count not between", value1, value2, "labCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountIsNull() {
            addCriterion("dispense_count is null");
            return (Criteria) this;
        }

        public Criteria andDispenseCountIsNotNull() {
            addCriterion("dispense_count is not null");
            return (Criteria) this;
        }

        public Criteria andDispenseCountEqualTo(Integer value) {
            addCriterion("dispense_count =", value, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountNotEqualTo(Integer value) {
            addCriterion("dispense_count <>", value, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountGreaterThan(Integer value) {
            addCriterion("dispense_count >", value, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("dispense_count >=", value, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountLessThan(Integer value) {
            addCriterion("dispense_count <", value, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountLessThanOrEqualTo(Integer value) {
            addCriterion("dispense_count <=", value, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountIn(List<Integer> values) {
            addCriterion("dispense_count in", values, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountNotIn(List<Integer> values) {
            addCriterion("dispense_count not in", values, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountBetween(Integer value1, Integer value2) {
            addCriterion("dispense_count between", value1, value2, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDispenseCountNotBetween(Integer value1, Integer value2) {
            addCriterion("dispense_count not between", value1, value2, "dispenseCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountIsNull() {
            addCriterion("delivery_count is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountIsNotNull() {
            addCriterion("delivery_count is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountEqualTo(Integer value) {
            addCriterion("delivery_count =", value, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountNotEqualTo(Integer value) {
            addCriterion("delivery_count <>", value, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountGreaterThan(Integer value) {
            addCriterion("delivery_count >", value, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("delivery_count >=", value, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountLessThan(Integer value) {
            addCriterion("delivery_count <", value, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountLessThanOrEqualTo(Integer value) {
            addCriterion("delivery_count <=", value, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountIn(List<Integer> values) {
            addCriterion("delivery_count in", values, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountNotIn(List<Integer> values) {
            addCriterion("delivery_count not in", values, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountBetween(Integer value1, Integer value2) {
            addCriterion("delivery_count between", value1, value2, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andDeliveryCountNotBetween(Integer value1, Integer value2) {
            addCriterion("delivery_count not between", value1, value2, "deliveryCount");
            return (Criteria) this;
        }

        public Criteria andExecCountIsNull() {
            addCriterion("exec_count is null");
            return (Criteria) this;
        }

        public Criteria andExecCountIsNotNull() {
            addCriterion("exec_count is not null");
            return (Criteria) this;
        }

        public Criteria andExecCountEqualTo(Integer value) {
            addCriterion("exec_count =", value, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountNotEqualTo(Integer value) {
            addCriterion("exec_count <>", value, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountGreaterThan(Integer value) {
            addCriterion("exec_count >", value, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("exec_count >=", value, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountLessThan(Integer value) {
            addCriterion("exec_count <", value, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountLessThanOrEqualTo(Integer value) {
            addCriterion("exec_count <=", value, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountIn(List<Integer> values) {
            addCriterion("exec_count in", values, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountNotIn(List<Integer> values) {
            addCriterion("exec_count not in", values, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountBetween(Integer value1, Integer value2) {
            addCriterion("exec_count between", value1, value2, "execCount");
            return (Criteria) this;
        }

        public Criteria andExecCountNotBetween(Integer value1, Integer value2) {
            addCriterion("exec_count not between", value1, value2, "execCount");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}